home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Demos / Bowers Development / AppMaker 2.0b5 / Examples / Windows MFC / MFC generated / CDemo1DlgDoc.cp < prev    next >
Text File  |  1996-01-01  |  1KB  |  81 lines

  1. // CDemo1DlgDoc.cp -- Document methods
  2. // Created 01/01/95 12:01 PM by AppMaker
  3.  
  4. #include "stdafx.h"
  5. #include "Demo1Dlg.h"
  6. #include "CDemo1DlgDoc.h"
  7.  
  8. #ifdef _DEBUG
  9. #undef THIS_FILE
  10. static char BASED_CODE THIS_FILE[] = __FILE__;
  11. #endif
  12.  
  13. //
  14. // class CDemo1DlgDoc
  15. //
  16.  
  17. IMPLEMENT_DYNCREATE(CDemo1DlgDoc, CDocument)
  18.  
  19. BEGIN_MESSAGE_MAP(CDemo1DlgDoc, CDocument)
  20.     //{{AFX_MSG_MAP(CDemo1DlgDoc)
  21.     // Handlers within the section marked by {{AFX_MSG_MAP and }}AFX_MSG_MAP
  22.     // are maintained by ClassExpress.    
  23.     //}}AFX_MSG_MAP
  24. END_MESSAGE_MAP()
  25.  
  26. //
  27. // CDemo1DlgDoc constructor
  28. //
  29.  
  30. CDemo1DlgDoc::CDemo1DlgDoc()
  31. {
  32.     // to do: add one-time construction code here
  33. }
  34.  
  35. //
  36. // CDemo1DlgDoc destructor
  37. //
  38.  
  39. CDemo1DlgDoc::~CDemo1DlgDoc()
  40. {
  41. }
  42.  
  43. BOOL CDemo1DlgDoc::OnNewDocument()
  44. {
  45.     if (!CDocument::OnNewDocument()) return FALSE;
  46.     // to do: add reinitialization code here
  47.     // This document will be reused (as SDI only allows one open document).
  48.     return TRUE;
  49. }
  50.  
  51. void CDemo1DlgDoc::Serialize(CArchive& ar)
  52. {
  53.     if (ar.IsStoring()) {
  54.         // to do: add saving code here
  55.     } else {
  56.         // to do: add loading code here
  57.     }
  58. }
  59.  
  60.  
  61. //
  62. // CDemo1DlgDoc debug diagnostics
  63. //
  64.  
  65. #ifdef _DEBUG
  66. void CDemo1DlgDoc::AssertValid() const
  67. {
  68.     CDocument::AssertValid();
  69. }
  70.  
  71. void CDemo1DlgDoc::Dump(CDumpContext& dc) const
  72. {
  73.     CDocument::Dump(dc);
  74. }
  75.  
  76. #endif 
  77.  
  78. //
  79. // CDemo1DlgDoc commands
  80. //
  81.